> Forest of True Sight > Questions & Answers Reload this Page enchantments always whole numbers?
Reply
Old Sep 03, 2009, 05:59 AM // 05:59   #1
...is in denial
 
dr love's Avatar
 
Join Date: Sep 2006
Location: Hyperion
Guild: starcraft 2
Profession: P/Me
Advertisement

Disable Ads
Default enchantments always whole numbers?

lets say i cast reversal of fortune (8s duration) with a 20% enchant item.
will the time be 9s (rounded down), 10s (rounded up) or 9.6s (exact)?

from my testing it seems to be either rounded up or exact, but i'm not sure which one.
dr love is offline   Reply With Quote
Old Sep 03, 2009, 06:34 AM // 06:34   #2
Wilds Pathfinder
 
Divine Ashes's Avatar
 
Join Date: Aug 2006
Location: Chicago
Guild: LFG
Profession: R/
Default

I'm pretty sure it will be rounded up to 10 seconds.
Divine Ashes is offline   Reply With Quote
Old Sep 03, 2009, 06:40 AM // 06:40   #3
Site Contributor
 
bsoltan's Avatar
 
Join Date: Dec 2005
Location: UK
Guild: [SoF]
Default

http://wiki.guildwars.com/wiki/Talk:Duration

From this link it seems that above .5 it is rounded up and below .5 it is rounded down.
bsoltan is offline   Reply With Quote
Old Sep 03, 2009, 11:49 AM // 11:49   #4
Banned
 
ShoGunTheOne's Avatar
 
Join Date: Sep 2007
Location: Undercity
Guild: 泰瑞亚联盟
Profession: E/
Default

it rounds down i think....
say 9.9 secs, will become 9 secs

i've always remembered it to be like that o.O
now the above posters are really putting doubt in my mind D:
ShoGunTheOne is offline   Reply With Quote
Old Sep 04, 2009, 01:37 AM // 01:37   #5
Forge Runner
 
Operative 14's Avatar
 
Join Date: Nov 2006
Location: Arizona, USA
Guild: [OOP] Order of the Phoenix I
Default

From a programming perspective it might be that the durations are declared as integers in which case I think it would round down to the whole number associated with it. For instance, 9.999 would still be 9, simply because the programming language only reads the number to the left of the decimal point when it is an integer.

I'm not sure though, and GW might use a different language that works differently.
Operative 14 is offline   Reply With Quote
Reply


Share This Forum!  
 
Thread Tools
Display Modes


All times are GMT. The time now is 09:47 AM // 09:47.